package com.cattsoft.user.service.hibernateimpl;

import java.util.List;

import com.cattsoft.user.dao.IUserDAO;
import com.cattsoft.user.model.User;
import com.cattsoft.user.service.IUserService;
public class UserServiceImpl implements IUserService {
	private IUserDAO dao;

	public void delete(User user) {
		dao.delete(user);
	}

	public List findAll() {
		return dao.findAll();
	}

	public User findById(Integer id) {
		return dao.findById(id);
	}

	public void save(User user) {
		dao.save(user);
	}

	public void update(User user) {
		dao.update(user);
	}

	public IUserDAO getDao() {
		return dao;
	}

	public void setDao(IUserDAO dao) {
		this.dao = dao;
	}	
}
